
import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Appindex from '@/components/home/Appindex'
import Home from '@/components/home/Home'
import Login from '@/components/Login/Login'
import UserManagement from '@/components/management/users/UserManagement'
import PasswdManagement from '@/components/management/users/PasswdManagement'
import RoleManagement from '@/components/management/users/RoleManagement'
import MenuManagement from '@/components/management/users/MenuManagement'
import AttendanceManagement from '@/components/management/Attendance/AttendanceManagement'
import AskForLeaveManagement from '@/components/management/Attendance/AskForLeaveManagement'
import AttendancePanel from '@/components/management/Attendance/AttendancePanel'
import AskForLeavePanel from '@/components/management/Attendance/AskForLeavePanel'
import CourseManagement from '@/components/management/course/CourseManagement'
import TermManagement from '@/components/management/term/TermManagement'
import TuitionManagement from '@/components/management/tuition/TuitionManagement'
import ClassManagement from '@/components/management/class/ClassManagement'
import ClassTypeManagement from '@/components/management/class/ClassTypeManagement'
import CourseTypeManagement from '@/components/management/course/CourseTypeManagement'
import CourseTable from '@/components/management/course/CourseTable'
import ChargeTypeManagement from '@/components/management/tuition/ChargeTypeManagement'
import QuitClassManagement from '@/components/management/class/QuitClassManagement'
import TransferClassManagement from '@/components/management/class/TransferClassManagement'
import QuitClassPanel from '@/components/management/class/QuitClassPanel'
import TransferClassPanel from '@/components/management/class/TransferClassPanel'
// 分配管理
import StudentClassAllocation from '@/components/allocation/StudentClassAllocation'
import UserRoleAllocation from '@/components/allocation/UserRoleAllocation'
import RoleMenuAllocation from '@/components/allocation/RoleMenuAllocation'
import TeacherCourseAllocation from '@/components/allocation/TeacherCourseAllocation'
import ClassCourseAllocation from '@/components/allocation/ClassCourseAllocation'
// 已分配信息
import UserRoleAlreadyInfo from '@/components/alreadyAllocation/UserRoleAlreadyInfo'
import RoleMenuAlreadyInfo from '@/components/alreadyAllocation/RoleMenuAlreadyInfo'
import StudentClassAlreadyInfo from '@/components/alreadyAllocation/StudentClassAlreadyInfo'
import ClassCourseAlreadyInfo from '@/components/alreadyAllocation/ClassCourseAlreadyInfo'
import TeacherCourseAlreadyInfo from '@/components/alreadyAllocation/TeacherCourseAlreadyInfo'
// 就业信息
import EmploymentManagement from '@/components/management/employment/EmploymentManagement'
import RecommendManagement from '@/components/management/employment/RecommendManagement'
import EmploymentPanel from '@/components/management/employment/EmploymentPanel'
import RecommendPanel from '@/components/management/employment/RecommendPanel'
// 费用信息
import TermClassPriceManagement from '@/components/management/tuition/TermClassPriceManagement'
import ReturnClassTuition from '@/components/management/tuition/ReturnClassTuition'
import ReturnTuitionPanel from '@/components/management/tuition/ReturnTuitionPanel'
import TransferClassTuition from '@/components/management/tuition/TransferClassTuition'
import TransferTuitionPanel from '@/components/management/tuition/TransferTuitionPanel'
import TuitionPanel from '@/components/management/tuition/TuitionPanel'
import StudentPaymentInfo from '@/components/management/tuition/StudentPaymentInfo'
// 数据分析
import DataAnalysis from '@/components/management/DataAnalysis'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  mode: 'hash',
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {// 登录页面
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      redirect: '/index',
      children: [
        {// 首页
          path: '/index',
          name: 'Appindex',
          component: Appindex,
          meta: {
            requireAuth: true
          }
        },
        {// 用户管理
          path: '/userManagement',
          name: 'UserManagement',
          component: UserManagement
        },
        {// 密码管理
          path: '/passwdManagement',
          name: 'PasswdManagement',
          component: PasswdManagement
        },
        {// 角色管理
          path: '/roleManagement',
          name: 'RoleManagement',
          component: RoleManagement
        },
        {// 权限管理
          path: '/menuManagement',
          name: 'MenuManagement',
          component: MenuManagement
        },
        {// 考勤管理
          path: '/attendanceManagement',
          name: 'AttendanceManagement',
          component: AttendanceManagement
        },
        {// 请假管理
          path: '/askForLeaveManagement',
          name: 'askForLeaveManagement',
          component: AskForLeaveManagement
        },
        {// 请假申请面板
          path: '/askForLeavePanel',
          name: 'askForLeavePanel',
          component: AskForLeavePanel
        },
        {// 课程管理
          path: '/courseManagement',
          name: 'CourseManagement',
          component: CourseManagement
        },
        {// 学期管理
          path: '/termManagement',
          name: 'TermManagement',
          component: TermManagement
        },
        {// 学费管理
          path: '/tuitionManagement',
          name: 'TuitionManagement',
          component: TuitionManagement
        },
        {// 班级管理
          path: '/classManagement',
          name: 'ClassManagement',
          component: ClassManagement
        },
        {// 班级类型管理
          path: '/classTypeManagement',
          name: 'ClassTypeManagement',
          component: ClassTypeManagement
        },
        {// 退班管理
          path: '/quitClassManagement',
          name: 'QuitClassManagement',
          component: QuitClassManagement
        },
        {// 转班管理
          path: '/transferClassManagement',
          name: 'TransferClassManagement',
          component: TransferClassManagement
        },
        {// 退班信息面板
          path: '/quitClassPanel',
          name: 'QuitClassPanel',
          component: QuitClassPanel
        },
        {// 转班班信息面板
          path: '/transferClassPanel',
          name: 'TransferClassPanel',
          component: TransferClassPanel
        },
        {// 课程类型管理
          path: '/courseTypeManagement',
          name: 'CourseTypeManagement',
          component: CourseTypeManagement
        },
        {// 费用类型
          path: '/chargeTypeManagement',
          name: 'ChargeTypeManagement',
          component: ChargeTypeManagement
        },
        {// 学生班级分配
          path: '/studentClassAllocation',
          name: 'StudentClassAllocation',
          component: StudentClassAllocation
        },
        {// 用户角色分配
          path: '/userRoleAllocation',
          name: 'UserRoleAllocation',
          component: UserRoleAllocation
        },
        {// 角色权限分配
          path: '/roleMenuAllocation',
          name: 'roleMenuAllocation',
          component: RoleMenuAllocation
        },
        {// 教师课程分配
          path: '/teacherCourseAllocation',
          name: 'teacherCourseAllocation',
          component: TeacherCourseAllocation
        },
        {// 班级课程分配
          path: '/classCourseAllocation',
          name: 'classCourseAllocation',
          component: ClassCourseAllocation
        },
        {// 用户角色已分配信息
          path: '/userRoleAlreadyInfo',
          name: 'userRoleAlreadyInfo',
          component: UserRoleAlreadyInfo
        },
        {// 角色权限已分配信息
          path: '/roleMenuAlreadyInfo',
          name: 'roleMenuAlreadyInfo',
          component: RoleMenuAlreadyInfo
        },
        {// 学生班级已分配信息
          path: '/studentClassAlreadyInfo',
          name: 'studentClassAlreadyInfo',
          component: StudentClassAlreadyInfo
        },
        {// 班级课程已分配信息
          path: '/classCourseAlreadyInfo',
          name: 'classCourseAlreadyInfo',
          component: ClassCourseAlreadyInfo
        },
        {// 老师课程已分配信息
          path: '/teacherCourseAlreadyInfo',
          name: 'teacherCourseAlreadyInfo',
          component: TeacherCourseAlreadyInfo
        },
        {// 就业登记信息
          path: '/employmentManagement',
          name: 'employmentManagement',
          component: EmploymentManagement
        },
        {// 就业推荐信息
          path: '/recommendManagement',
          name: 'recommendManagement',
          component: RecommendManagement
        },
        {// 就业登记信息面板
          path: '/employmentPanel',
          name: 'employmentPanel',
          component: EmploymentPanel
        },
        {// 就业推荐面板
          path: '/recommendPanel',
          name: 'recommendPanel',
          component: RecommendPanel
        },
        {// 学期班级费用
          path: '/termClassPriceManagement',
          name: 'termClassPriceManagement',
          component: TermClassPriceManagement
        },
        {// 退班费用处理
          path: '/returnClassTuition',
          name: 'returnClassTuition',
          component: ReturnClassTuition
        },
        {
          // 退班费处理面板
          path: '/returnTuitionPanel',
          name: 'returnTuitionPanel',
          component: ReturnTuitionPanel
        },
        {
          // 转班费处理
          path: '/transferClassTuition',
          name: 'transferClassTuition',
          component: TransferClassTuition
        },
        {
          // 转班费处理面板
          path: '/transferTuitionPanel',
          name: 'transferTuitionPanel',
          component: TransferTuitionPanel
        },
        {
          // 学费处理面板
          path: '/tuitionPanel',
          name: 'tuitionPanel',
          component: TuitionPanel
        },
        {
          // 学生费用信息表
          path: '/studentPaymentInfo',
          name: 'studentPaymentInfo',
          component: StudentPaymentInfo
        },
        {// 课程表
          path: '/courseTable',
          name: 'courseTable',
          component: CourseTable
        },
        {// 学生考勤信息页面
          path: '/attendancePanel',
          name: 'attendancePanel',
          component: AttendancePanel
        },
        {// 数据分析
          path: '/dataAnalysis',
          name: 'dataAnalysis',
          component: DataAnalysis
        }
      ]
    }

  ]
})
